<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<h:outputStylesheet name="style.css" library="css" />
<title>Login</title>
</h:head>
<h:body>
<f:loadBundle basename="usermanagement.MessageResources" var="message" />
<f:view>
	<rich:panel header="Login" style="width: 315px">
		<h:form id="loginForm">
			<h:panelGrid columns="2">
				<h:outputText value="#{message.username}" styleClass="required" />
				<h:inputText value="#{loginBean.username}" id="username" styleClass="required" />
				<h:outputText value="#{message.password}" styleClass="required" />
				<h:inputSecret value="#{loginBean.password}" id="password" styleClass="required" />
			</h:panelGrid>
			<h:commandButton action="#{loginBean.login}" value="#{message.login}"
				id="loginButton" />
		</h:form>
		<h:form id="register">
			<h:commandLink action="register" value="Register" id="register" />
		</h:form>
	</rich:panel>
</f:view>
</h:body>
</html>